package com.zaimokuza.cn.entity.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author zaimokuza
 */
@ApiModel("用于注册的用户对象")
@Data
public class RegisterUser {

    @ApiModelProperty("用户ID")
    private String id;
    @ApiModelProperty("手机号")
    @NotNull(message = "请填写手机号！")
    private Long phone;
    @ApiModelProperty("密码")
    @NotBlank(message = "请填写密码！")
    private String password;
    @ApiModelProperty("昵称")
    @NotBlank(message = "请填写昵称！")
    private String name;

}
